package com.vcredit.creditcat.enumtype.product.h5;

public enum AvailableProductsVo {
	weixin(3L, "维信闪贷"),	queqianhua(15L, "缺快钱"),	haijieqian(6L, "还借钱");
	private Long productId;
	private String desc;

	AvailableProductsVo(Long productId, String desc) {
		this.productId = productId;
		this.desc = desc;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public static Long getAuditResultById(Long productId) {
		AvailableProductsVo[] loanOrderStatusEnums = AvailableProductsVo.values();
		for (AvailableProductsVo loanOrderStatusEnum : loanOrderStatusEnums) {
			if (loanOrderStatusEnum.getProductId() == productId) {
				return loanOrderStatusEnum.productId;
			}
		}
		return null;
	}
}
